import request from '../utils/request'


export const getSchoolList = (page = 1, limit = 20) => {
    return request({
        url: `/admin/school?page=${page}&limit=${limit}`,
        method: 'GET',
    })
}



export const getSchoolDetail = (id) => {
    return request({
        url: `/admin/s/school/read?id=${id}`,
        method: 'GET',
    })
}



export const createSchool = (data) => {
    return request({
        url: '/admin/school/save',
        method: 'POST',
        data
    })
}